@layout("/common/_container.html",{js:["/assets/basic/basicWarehouse/basicWarehouse_add_hx.js"]}){
<style>
	.layui-badge-rim, .layui-colla-content, .layui-colla-item, .layui-collapse, .layui-elem-field, .layui-form-pane .layui-form-item[pane], .layui-form-pane .layui-form-label, .layui-input, .layui-layedit, .layui-layedit-tool, .layui-quote-nm, .layui-select, .layui-tab-bar, .layui-tab-card, .layui-tab-title, .layui-tab-title .layui-this:after, .layui-textarea {
    	border-color: #89d19d;
    }
    .layui-form-pane .layui-form-label {
   	 	background-color: #e6e6e6;
	}
</style>
<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="basicWarehouseForm" lay-filter="basicWarehouseForm" class="layui-form layui-form-pane" style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
                    <legend>录入仓库信息</legend>
                </fieldset>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">所属项目<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select id="warehouseOperateId" name="warehouseOperateId" lay-filter="dataSourceId" lay-verify="required" required>
                            @for(item in basicOperatelist!){
                            <option value="${item.id}">${item.operateName}</option>
                            @}
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">仓库名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="warehouseName" name="warehouseName" placeholder="请输入仓库名称" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">仓库编号<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="warehouseNumber" name="warehouseNumber" placeholder="请输入仓库编号" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">联系人</label>
                    <div class="layui-input-block">
                        <input id="warehouseContacts" name="warehouseContacts" placeholder="请输入联系人" type="text" class="layui-input" lay-verify="" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">联系电话</label>
                    <div class="layui-input-block">
                        <input id="tel" name="tel" placeholder="请输入联系电话" type="text" class="layui-input" lay-verify="" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">详细地址<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="warehouseAddress" name="warehouseAddress" placeholder="请输入详细地址" type="text" class="layui-input" lay-verify="required" required/>
                        <button class="layui-btn" type="button" id="selectlocation">&emsp;选择地址&emsp;</button>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">经度<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="longitude" name="longitude" placeholder="请输入经度" type="text" class="layui-input" lay-verify="required" required readonly="readonly" style="background: #E7EAED"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">维度<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="latitude" name="latitude" placeholder="请输入维度" type="text" class="layui-input" lay-verify="required" required readonly="readonly" style="background: #E7EAED"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">可用面积</label>
                    <div class="layui-input-block">
                        <input id="warehouseCanmeasure" name="warehouseCanmeasure" placeholder="请输入可用面积" type="text" class="layui-input" lay-verify="" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">面积</label>
                    <div class="layui-input-block">
                        <input id="warehouseMeasure" name="warehouseMeasure" placeholder="请输入面积" type="text" class="layui-input" lay-verify="" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">仓储类型</label>
                    <div class="layui-input-block">
                        <select id="warehouseTypes" name="warehouseTypes" lay-filter="warehouseTypes" lay-verify="" required>
                            <option value=""></option>
                            <option value="零售">零售</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="font-weight: 600;">仓库类型<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select id="warehouseType" name="warehouseType" lay-filter="warehouseType" lay-verify="required" required>
                            <option value="存储仓">存储仓</option>
                            <option value="退货仓">退货仓</option>
                            <option value="不良仓">不良仓</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input id="warehouseNotes" name="warehouseNotes" placeholder="请输入备注" type="text" class="layui-input" lay-verify="" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">新零帮仓库id</label>
                    <div class="layui-input-block">
                        <input id="warehouseXlbId" name="warehouseXlbId" placeholder="请输入新零帮仓库id" type="text" class="layui-input" lay-verify="" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}